import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { gpsListComponent } from './gps-list/gps-list.component';
import { AuthGuardService } from '@core/auth/auth-guard.service';
import { gpsViewEditComponent } from 'app/routes/gps/gps-list/edit/gps-edit.component';
import { gpsViewComponent } from 'app/routes/gps/gps-list/edit/gps-view.component';
import { gpsAddComponent } from 'app/routes/gps/gps-list/edit/gps-add.component';

const routes: Routes = [
  {
    path: 'gps',
    children: [
      { path: '', component: gpsListComponent },
      { path: 'edit/:id', component: gpsViewEditComponent },
      { path: 'view/:id', component: gpsViewComponent },
      { path: 'add', component: gpsAddComponent },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class gpsRoutingModule { }
